Advantages to this approach include the fact that object authors can alter the copy without worrying about side - effects across other children of the parent 這樣做的好處包括對象的作者可以修改這份副本而無須擔(dān)心對此父類的其他子類產(chǎn)生副作用。
Refers to enclosing object behavior and properties in a manner that makes them inaccessible to users unless the object author wants to allow that access 指的是以這樣一種方式包含對象行為和特性:除非對象作者允許,否則用戶無法訪問該對象的行為和特性。